/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.market.model;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Transient;
import javax.servlet.http.Part;

/**
 *
 * @author pahima
 */
@Entity
@NamedQuery(name = Panier.FIND_ALL, query = "SELECT pan FROM Panier pan")
public class Panier {
    public final static String FIND_ALL = "Panier.findAll";
    public final static String Del_SOM = "Panier.delete";

    @Id
    @GeneratedValue
    private int id;
    //private List <Produit> ;
    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "cat_fk", nullable = false)
    private Categorie categorie;
    
}
